home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / wf314.zip / WF311DOC.ZIP / DOCS / WF.006 < prev    next >
Text File  |  1992-01-31  |  23KB  |  576 lines

  1. .f3                              - # -          Chapter 6 - Working With Blocks
  2. .rm70
  3. .tc
  4. .tc1
  5. .tc 6. WORKING WITH BLOCKS ................................#
  6. CHAPTER 6   WORKING WITH BLOCKS
  7.  
  8. .ixMoving;Moving blocks of Text - see Blocks
  9. .imBlocks
  10. A block of text is an area that starts with a Begin Block marker, and
  11. terminates with an End Block marker. Normally, all text from the
  12. Beginning going left to right and down the file is included up to the
  13. end block marker. However, if Column Mode is set, then the block
  14. markers also set column boundaries, and only text within those columns
  15. is included.
  16.  
  17. .tc    Mark a Block of Text ...............................#
  18. Mark a Block of Text
  19.  
  20. .ix   Mark block  (^KB & ^KK)
  21. 1. Place the cursor at the beginning of the block.
  22. 2. Press the block begin keys: Ctrl K B or F7.
  23. 3. Move the cursor to the end of the block. Press the Block end
  24.    sequence: Ctrl K K or F8. The block will be highlighted in
  25.    complementary colours.
  26.  
  27. Font Display
  28.  
  29. If Font display is OFF, then the cursor column position is where the
  30. block marker is set. If Font Display is ON, then if the cursor is
  31. positioned just after a font marker, the beginning block will be moved
  32. left until the character prior to the block marker is not a font
  33. character. Conversely, if the End block marker is positioned before a
  34. font display character, the End block marker will be moved right until
  35. it is positioned over a non font character. This is to ensure that
  36. font characters are included in blocks when they are marked if font
  37. display is ON.
  38.  
  39. Columns Included
  40.  
  41. The column the cursor resides in is included in the beginning of
  42. block, but is excluded from the end of block. If column mode is OFF,
  43. then all text between the Beginning and the End markers is included.
  44. When column mode is ON (the status line will show Tbl I or Tbl R) the
  45. text must be within the columns delimited by the beginning and end
  46. markers.
  47.  
  48. .Tc    Hide a Block .......................................#
  49. Hide a Block
  50.  
  51. .ix   Turn of Marking (^KH)
  52. Once a block is marked, it can be hidden from view. When it is hidden,
  53. it is treated as if it had never been marked, except that if you enter
  54. the Hide block command a second time without changing the block
  55. markers, then the hidden block will be revealed again.
  56.  
  57. To hide a block press Ctrl K H
  58.  
  59. .tc    Columns ............................................#
  60. Columns
  61.  
  62. .ix   Column Blocks
  63. When column mode is active, blocks of text are delineated by columns.
  64. There are 2 types of column mode: Column Mode and Column Replace Mode,
  65. and they affect the way in which blocks of text are moved and copied.
  66.  
  67. Column Mode
  68.  
  69. .ixColumns;   Column Blocks
  70. To toggle column mode, enter Ctrl K N. If column mode is OFF, it will
  71. be turned ON, and vice versa. Column mode determines that blocks mark
  72. columns of text, and with word wrap, that words wrap within columns.
  73. The status line will display either Tbl I or Tbl R, depending upon
  74. whether Column Replace is also on.
  75.  
  76. Column Replace Mode
  77.  
  78. .ixColumns;   Column Replace (^KI)
  79. .ixColumns;   Column Mode    (^KN)
  80. To toggle column replace mode, enter Ctrl K I. If column replace is
  81. OFF, it will be turned ON, and vice versa. However, it will have no
  82. effect unless column mode is also on.
  83.  
  84. When column mode is ON and column replace is OFF, columns of text
  85. displace any text on lines they are moved (or copied) into, and lines
  86. they are moved (or deleted) from have their text moved left to fill in
  87. the gap.
  88.  
  89. When column mode is ON and column replace is ON, columns of text
  90. overwrite text on lines into which they are moved (or copied), and
  91. lines they are moved (or deleted) from have the text replaced by
  92. spaces.
  93.  
  94. This is covered in more detail in Move, Copy and Delete below.
  95.  
  96. .Tc    Moving a Block .....................................#
  97. Moving a Block
  98.  
  99. .ix   Moving (^KV)
  100. To move a block of text within a file:
  101. 1. Mark the block of text with Ctrl K B and Ctrl K K.
  102. 2. Move the cursor to the new location for the block.
  103. 3. Press Ctrl K V and the text is moved.
  104. 4. Press Ctrl K H to unmark the block.
  105.  
  106. If Column mode is OFF, then the moved text will be inserted where the
  107. cursor is, regardless of the setting of INS. The text to the right of
  108. the cursor will be pushed right, and if the block consists of more
  109. than one line, additional lines will be inserted. To move a complete
  110. line, go to column one and mark the beginning, and then go down one
  111. line and mark the end in column one as well. The text is deleted from
  112. its original position in a move. If the moved text is all in one line,
  113. then no gap will remain after the text is moved.
  114.  
  115. In the examples below, the marked text is underlined. The cursor is
  116. shown by a single underline character _
  117.  
  118. No Columns{.╬}
  119. (i)     Partial line.
  120.  
  121.          Friends, Romans and countrymen, lend me your ears.
  122.          Now is the time
  123.  
  124.         becomes
  125.  
  126.          Friends, Re your ears.
  127.          Now iomans and countrymen, lend ms the time
  128.  
  129. .cp7
  130. (ii)    Multiple lines
  131.  
  132.          'Twas brillig and the slythy toves
  133.          did gyre and gymbol in the gabe.
  134.          All mimsey were the borogoves,
  135. _        and mome raths outgabe.
  136.  
  137.         becomes
  138.  
  139.          All mimsey were the borogoves,
  140.          'Twas brillig and the slythy toves
  141.          did gyre and gymbol in the gabe.
  142. _        and mome raths outgabe.
  143.  
  144. Column Mode
  145.  
  146. .ix   Moving Columns
  147. If Column Mode is ON, and Column Replace mode is OFF, (the status line
  148. shows Tbl I) then the moved text pushes text on the line to the right
  149. for each line that has text moved to it. The source text is deleted,
  150. and the text on the line flows left to fill in any gaps:
  151.  
  152. Example
  153.  
  154.           This is the date that the decision was made not to pursue
  155.           the assessment, or the date on which the decision was made
  156.           not to offer a program, or the date on which the Assessment
  157.           deliverables (eg rehabilitation plan or assessment report)
  158.           were produced. If not filled in, when the client proceeds to
  159.           the Program Details screen, it will default to the start
  160.           date from the first current objective.
  161.  
  162.         becomes
  163.  
  164.           Thie that the decision was s is the datmade not to pursue
  165.           the or the date on which th assessment,e decision was made
  166.           notprogram, or the date on  to offer a which the Assessment
  167.           delg rehabilitation plan oriverables (e assessment report)
  168.           werIf not filled in, when te produced. he client proceeds to
  169.           the Program Details screen, it will default to the start
  170.           date from the first current objective.
  171.  
  172. which does not make a lot of sense for text, but serves to illustrate
  173. what happens.
  174.  
  175. .cp15
  176. Column Replace
  177.  
  178. .ix   Moving Columns
  179. If Column Mode is ON, and Column Replace mode is ON, (the status line
  180. shows Tbl R) then the moved text overwrites text on the line to the right
  181. for each line that has text moved to it. The source text is deleted,
  182. and the text on the line replaced by spaces.
  183.  
  184. .cp10
  185. Example
  186.  
  187.           This is the date that the decision was made not to pursue
  188.           the assessment, or the date on which the decision was made
  189.           not to offer a program, or the date on which the Assessment
  190.           deliverables (eg rehabilitation plan or assessment report)
  191.           were produced. If not filled in, when the client proceeds to
  192.           the Program Details screen, it will default to the start
  193.           date from the first current objective.
  194.  
  195.         becomes
  196.  
  197.           Thie that the decision was             made not to pursue
  198.           the or the date on which th            e decision was made
  199.           notprogram, or the date on             which the Assessment
  200.           delg rehabilitation plan or             assessment report)
  201.           werIf not filled in, when t            he client proceeds to
  202.           the Program Details screen, it will default to the start
  203.           date from t